package com.whfc.base.service;

import com.whfc.base.dto.AppExportDTO;
import com.whfc.base.param.AppFileExportParam;
import com.whfc.common.exception.BizException;
import com.whfc.common.result.PageData;

/**
 * @Description 导出记录
 * @Author hw
 * @Date 2021-07-20 17:53
 * @Version 1.0
 */
public interface AppExportService {

    /**
     * 导出记录列表
     *
     * @param deptId
     * @param pageNum
     * @param pageSize
     * @return
     * @throws BizException
     */
    PageData<AppExportDTO> list(Integer deptId, Integer pageNum, Integer pageSize) throws BizException;

    /**
     * 保存导出记录
     *
     * @param param
     * @return
     * @throws BizException
     */
    Integer install(AppFileExportParam param) throws BizException;

    /**
     * 更新导出记录
     *
     * @param param
     * @throws BizException
     */
    void update(AppFileExportParam param) throws BizException;

    /**
     * 更新导出记录失败状态
     *
     * @throws BizException
     */
    @Deprecated
    void updateFailureState() throws BizException;

    /**
     * 删除过期文件
     *
     * @throws BizException
     */
    @Deprecated
    void delOverdueFile() throws BizException;
}
